package com.ibm.risk.irmp.base.auth.service;


import com.ibm.risk.irmp.base.auth.entity.SystemRole;
import com.ibm.risk.irmp.base.auth.entity.SystemRolePermission;

import java.util.List;
import java.util.Map;

public interface IRoleManagementService {

    List<SystemRole> getRoleList();

    List<Map<String, Object>> showPermission(String pmsType);

    List<SystemRolePermission> showRolePermissions(String roleCode, String functionType);

//    String generateRoleCode(String ROLE_NAME);

//    SystemRole addRole(SystemRole SystemRole);

    void saveRole(SystemRole roleEntity);

    Boolean saveRolePermission(String roleCode, String functionType, List<Long> functionIds);

    SystemRole findRoleById(String roleId);

    boolean deleteRole(String roleCode);

}
